<template>
  <page-main class="page-report-index">
    <div class="p-t-15"></div>
    <current-patient ref="currentPatient" />
    
    <van-cell-group size="large" title="选择查询报告类型">
      <van-cell v-for="(item,index) in list" :key="index" :title="item.name" is-link @click="gotoPage(item)" />
    </van-cell-group>

    <div class="tips">
      报告单内容仅供参考，最终结果已医院打印报告为准，最终解释权归本院所有。
    </div>
  </page-main>
</template>

<script>
import currentPatient from '@/view/components/currentPatient';
export default {
  components:{
    currentPatient
  },
  data(){
    return{
      list:[
        {name: '检查报告单', type: 1},
        {name: '检验报告单', type: 2}
      ],
      init_data:{},
    }
  },
  methods:{
    gotoPage(item){
      this.$util.gotoPage('/report/list', {type:item.type, cardId: this.$refs.currentPatient.cust.cardId});
    }
  }
}
</script>

<style>

</style>